package com.brainhealth.customer.mapper;

import java.util.List;
import com.brainhealth.customer.domain.ScoreMallOrder;
import com.brainhealth.customer.domain.ScoreMallOrderDetail;

/**
 * 积分商城订单Mapper接口
 * 
 * @author wolong
 * @date 2023-11-01
 */
public interface ScoreMallOrderMapper 
{
    /**
     * 查询积分商城订单
     * 
     * @param id 积分商城订单主键
     * @return 积分商城订单
     */
    public ScoreMallOrder selectScoreMallOrderById(Long id);

    /**
     * 查询积分商城订单（根据订单编号）
     * @param orderId 订单编号
     * @return
     */
    ScoreMallOrder selectScoreMallOrderByOrderId(String orderId);

    /**
     * 查询积分商城订单列表
     * @param scoreMallOrder
     * @return
     */
    List<ScoreMallOrder> getScoreMallOrderList(ScoreMallOrder scoreMallOrder);

    /**
     * 查询积分商城订单列表
     *
     * @param scoreMallOrder 积分商城订单
     * @return 积分商城订单集合
     */
    public List<ScoreMallOrder> selectScoreMallOrderList(ScoreMallOrder scoreMallOrder);

    /**
     * 新增积分商城订单
     * 
     * @param scoreMallOrder 积分商城订单
     * @return 结果
     */
    public int insertScoreMallOrder(ScoreMallOrder scoreMallOrder);

    /**
     * 修改积分商城订单
     * 
     * @param scoreMallOrder 积分商城订单
     * @return 结果
     */
    public int updateScoreMallOrder(ScoreMallOrder scoreMallOrder);

    /**
     * 删除积分商城订单
     * 
     * @param id 积分商城订单主键
     * @return 结果
     */
    public int deleteScoreMallOrderById(Long id);

    /**
     * 批量删除积分商城订单
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteScoreMallOrderByIds(Long[] ids);

    /**
     * 批量删除积分商城订单明细表
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteScoreMallOrderDetailByScoreMallOrderIds(Long[] ids);
    
    /**
     * 批量新增积分商城订单明细表
     * 
     * @param scoreMallOrderDetailList 积分商城订单明细表列表
     * @return 结果
     */
    public int batchScoreMallOrderDetail(List<ScoreMallOrderDetail> scoreMallOrderDetailList);
    

    /**
     * 通过积分商城订单主键删除积分商城订单明细表信息
     * 
     * @param id 积分商城订单ID
     * @return 结果
     */
    public int deleteScoreMallOrderDetailByScoreMallOrderId(Long id);
}
